package com.${companyName}.${projectName}.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.${companyName}.${projectName}.dao.${table.className}Dao;
import com.${companyName}.${projectName}.domain.${table.className};
import com.${companyName}.${projectName}.service.${table.className}Service;

/**
 * @author Zhao,XingGuo
 * @version ${generatTime}
 */
@Service
public class ${table.className}ServiceImpl implements ${table.className}Service {

	@Resource
	private ${table.className}Dao ${table.objectName}Dao;
	

	public Long create${table.className}(${table.className} t) {
		return this.${table.objectName}Dao.insertEntity(t);
	}
	
	public int modify${table.className}(${table.className} t) {
		return this.${table.objectName}Dao.updateEntity(t);
	}

	public int remove${table.className}(${table.className} t) {
		return this.${table.objectName}Dao.deleteEntity(t);
	}

	public ${table.className} get${table.className}(${table.className} t) {
		return this.${table.objectName}Dao.selectEntity(t);
	}

	public Long get${table.className}Count(${table.className} t) {
		return this.${table.objectName}Dao.selectEntityCount(t);
	}

	public List<${table.className}> get${table.className}List(${table.className} t) {
		return this.${table.objectName}Dao.selectEntityList(t);
	}

	public List<${table.className}> get${table.className}PaginatedList(${table.className} t) {
		return this.${table.objectName}Dao.selectEntityPaginatedList(t);
	}

}
